home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Bounds of s PolygonShape, bug
- Sent: 9/16/96 10:39 PM
- Received: 9/16/96 10:39 PM
- From: motion@nbn.com (Arni McKinley)
- Reply-To: ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List
-
-
- Brad and others,
-
- Haven't had a response to this. It is a real problem and I wonder if the
- ODF team or OD team can look into it.
-
- Arni
-
- >>The bounds is too small compared to what, the bounds of the points, or
- >>the bounds of what gets rendered if you frame it? The ODShape does not
- >>take into account any pen width (which would hang down, and to the right).
- >
- >When the bounds is drawn around the shape the right edge and the bottom
- >edge of the shape stick out beyond the bounds frame. I can send a screen
- >shot if you want.
- >
- >Arni
- >
- >>
- >>>I have noticed that if I create an ODShape based on the region of an
- >>>arbitrary polygon, then later ask for the shape's bounds, the bounds will
- >>>be too small on the right side and the bottom side, each by one pixel.
- >>>
- >>>ODShape* polyShape = ::FW_NewODShape( ev );
- >>>::FW_SetShapeRegion( ev, polyShape, ::FW_CreatePolygonRegion(
- >>>fPoly.GetCount(), fPoly.GetPoints() ) );
- >>>
- >>>selectionBounds = FW_GetShapeBoundingBox(ev, polyShape);
- >>>
- >>>selectionBounds will be too small.
- >>>
- >>>The code above begins in FW_CDragCommand::BeginDrag() where the selection
- >>>is asked to create the drag shape. Immediately afterward the bnds is
- >>>requested and used. A complex polygon will appear closed when dragged and
- >>>will leave a trail because the bounds is too small.
- >
- >Arni F. McKinley
- >President
- >MetaMind Software, Inc.
- >Mill Valley, CA 94941
- >motion@nbn.com
- >www.nbn.com/people/minds
- >_______________________________________
-
- Arni F. McKinley
- President
- MetaMind Software, Inc.
- Mill Valley, CA 94941
- motion@nbn.com
- www.nbn.com/people/minds
- _______________________________________